# the minimum version of CMake.
cmake_minimum_required(VERSION 3.5.0)
project(svga)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include
                    )
add_library(svga SHARED napi_init.cpp svga.pb.cc createPixelMap.cpp)

target_link_libraries(svga PUBLIC libace_napi.z.so libhilog_ndk.z.so libimage_source.so libpixelmap.so)
target_link_libraries(svga PRIVATE  ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/${OHOS_ARCH}/libprotobuf.a)
target_link_libraries(svga PRIVATE  ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/${OHOS_ARCH}/libprotoc.a)

target_include_directories(svga PRIVATE  ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/protobuf/${OHOS_ARCH}/include)
